// This MFC Samples source code demonstrates using MFC Microsoft Office Fluent User Interface 
// (the "Fluent UI") and is provided only as referential material to supplement the 
// Microsoft Foundation Classes Reference and related electronic documentation 
// included with the MFC C++ library software.  
// License terms to copy, use or distribute the Fluent UI are available separately.  
// To learn more about our Fluent UI licensing program, please visit 
// http://msdn.microsoft.com/officeui.
//
// Copyright (C) Microsoft Corporation
// All rights reserved.

// wfdeqView.h : interface of the CwfdeqView class
//
/**
 * \file
 * \ingroup Interface
 * ---
 *	interface of the CwfdeqView class, for implementation see wfdeqView.cpp
 *
*/


#pragma once

/**
 * \ingroup Interface
 * \brief List View class of MFC document/View architecture.
 * \author HapTork
*/

class CwfdeqView : public CListView
{
protected: // create from serialization only
	CwfdeqView();
	DECLARE_DYNCREATE(CwfdeqView)

// Attributes
public:
	CwfdeqDoc* GetDocument() const;

// Operations
public:

// Overrides
public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
	virtual void OnInitialUpdate(); // called first time after construct

// Implementation
public:
	virtual ~CwfdeqView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	afx_msg void OnFilePrintPreview();
	afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnTstbut();
	afx_msg void OnSetFocus(CWnd* pOldWnd);
private:
	static CWnd* flagSetFocus;
public:
	afx_msg void OnDoit();
	void writeGrid(cfdGrid,int);
protected:
public:
	PDE* pdeq;
protected:
	int curColumn;
};

#ifndef _DEBUG  // debug version in wfdeqView.cpp
inline CwfdeqDoc* CwfdeqView::GetDocument() const
   { return reinterpret_cast<CwfdeqDoc*>(m_pDocument); }
#endif